//
//  ByDocumentaryCellMoneyView.m
//  caipiao_ios
//
//  Created by mc on 2018/8/17.
//  Copyright © 2018年 ZhangZhanbin. All rights reserved.
//

#import "ByDocumentaryCellMoneyView.h"




@implementation ByDocumentaryCellMoneyView

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        CGFloat width = frame.size.width / 3.0;
        ByDocumentaryTitleValueView *leftView = [[ByDocumentaryTitleValueView alloc] init];
        [self addSubview:leftView];
        [leftView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(0);
            make.top.equalTo(self).offset(0);
            make.size.mas_equalTo(CGSizeMake(width, 50));
        }];
        leftView.titleLabel.text = @"认购金额";
        leftView.valueLabel.text = @"85479元";
        
        
        ByDocumentaryTitleValueView *centerView = [[ByDocumentaryTitleValueView alloc] init];
        [self addSubview:centerView ];
        [centerView  mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self).offset(0);
            make.top.equalTo(self).offset(0);
            make.size.mas_equalTo(CGSizeMake(width, 50));
        }];
        centerView .titleLabel.text = @"跟单人数";
        centerView .valueLabel.text = @"200人";
        
        
        ByDocumentaryTitleValueView *rightView = [[ByDocumentaryTitleValueView alloc] init];
        [self addSubview:rightView];
        [rightView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self).offset(0);
            make.top.equalTo(self).offset(0);
            make.size.mas_equalTo(CGSizeMake(width, 50));
        }];
        rightView.titleLabel.text = @"跟单金额";
        rightView.valueLabel.text = @"2000.00元";
        
        self.leftView = leftView;
        self.centerView = centerView;
        self.rightView = rightView;
        
    }
    return self;
}

@end
